/**
 * @FileName ConcreteState2.java
 * @Package com.designMode.state
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 下午2:19:32
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.state;

/**
 * @author 顾博君
 * @ClassName ConcreteState2
 * @Date 2016-1-19 下午2:19:32
 * @Function 具体状态角色2
 */
public class ConcreteState2 extends State {
    @Override
    public void handle1() {
        System.out.println("状态转换");
        super.context.setCurrentState(Context.STATE1);
        super.context.handle1();
    }

    @Override
    public void handle2() {
        System.out.println("ConcreteState2->handle2()");
    }

    @Override
    public String toString() {
        return "状态2";
    }
}
